package com.demo.bean.service.impl.columnManagement;

import com.demo.bean.mapper.columnManagement.ColumnManagementMapper;
import com.demo.bean.service.columnManagement.ColumnManagementService;
import com.demo.common.entity.ColumnManagement;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
/**
 * 查询父节点、父类下的子节点
 * 作者：孙佳佳
 * 补充：张佑威
 */
@Service
public class ColumnManagementServiceImpl implements ColumnManagementService {
    @Resource
    private ColumnManagementMapper columnManagementMapper;


    @Override
    public List<ColumnManagement> fatherAll() {
        return columnManagementMapper.fatherAll();
    }

    @Override
    public List<ColumnManagement> typeAll(String query) {
        return columnManagementMapper.typeAll(query);
    }

    @Override
    public ColumnManagement oneManagement(Integer id) {
        return columnManagementMapper.oneManagement(id);
    }

}
